
import Relay from "react-relay";
export default class GetPlanNeedCountMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getPlanNeedCount }`;
    }

    getVariables() { 
        return {
            argsInput: {
                pageSize: this.props.pageSize,
                pageNum: this.props.pageNum,
                uid: this.props.uid,
                planId: this.props.planId,
            }
        }
    }

   getFatQuery() {
    return Relay.QL`fragment on getPlanNeedCountPayload {
            responseData {
                errorCode
                value
                totalResult
                id
                planNeedCountModelList{
                   dosage
                   expend
                            needCount
                            sizeGroup
                            needCountId
                            planId
                            compactCount
                }
            }
        }`;
}

getConfigs() {
    return [{
        type: 'REQUIRED_CHILDREN',
        children: [Relay.QL`
               fragment on getPlanNeedCountPayload  {
                    responseData {
                        errorCode
                        value
                        totalResult
                        id
                        planNeedCountModelList{
                            dosage
                            expend
                            needCount
                            sizeGroup
                            needCountId
                            planId
                            compactCount
                        }
                    }
                 }
            `]
    }];
}

}
